package com.ruoyi.repair.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.repair.mapper.JrRepairOrderMapper;
import com.ruoyi.repair.domain.JrRepairOrder;
import com.ruoyi.repair.service.IJrRepairOrderService;

/**
 * 设备维修Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-01-03
 */
@Service
public class JrRepairOrderServiceImpl implements IJrRepairOrderService 
{
    @Autowired
    private JrRepairOrderMapper jrRepairOrderMapper;

    /**
     * 查询设备维修
     * 
     * @param repairOrderId 设备维修主键
     * @return 设备维修
     */
    @Override
    public JrRepairOrder selectJrRepairOrderByRepairOrderId(String repairOrderId)
    {
        return jrRepairOrderMapper.selectJrRepairOrderByRepairOrderId(repairOrderId);
    }

    /**
     * 查询设备维修列表
     * 
     * @param jrRepairOrder 设备维修
     * @return 设备维修
     */
    @Override
    public List<JrRepairOrder> selectJrRepairOrderList(JrRepairOrder jrRepairOrder)
    {
        return jrRepairOrderMapper.selectJrRepairOrderList(jrRepairOrder);
    }

    /**
     * 新增设备维修
     * 
     * @param jrRepairOrder 设备维修
     * @return 结果
     */
    @Override
    public int insertJrRepairOrder(JrRepairOrder jrRepairOrder)
    {
        return jrRepairOrderMapper.insertJrRepairOrder(jrRepairOrder);
    }

    /**
     * 修改设备维修
     * 
     * @param jrRepairOrder 设备维修
     * @return 结果
     */
    @Override
    public int updateJrRepairOrder(JrRepairOrder jrRepairOrder)
    {
        return jrRepairOrderMapper.updateJrRepairOrder(jrRepairOrder);
    }

    /**
     * 批量删除设备维修
     * 
     * @param repairOrderIds 需要删除的设备维修主键
     * @return 结果
     */
    @Override
    public int deleteJrRepairOrderByRepairOrderIds(String[] repairOrderIds)
    {
        return jrRepairOrderMapper.deleteJrRepairOrderByRepairOrderIds(repairOrderIds);
    }

    /**
     * 删除设备维修信息
     * 
     * @param repairOrderId 设备维修主键
     * @return 结果
     */
    @Override
    public int deleteJrRepairOrderByRepairOrderId(String repairOrderId)
    {
        return jrRepairOrderMapper.deleteJrRepairOrderByRepairOrderId(repairOrderId);
    }
}
